
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<br>
<fieldset>
    <legend>多文件上传结果显示</legend>
    <table>
        <tr>
            <td>文件名</td>
            <td>文件描述</td>
            <td>文件大小(Byte)</td>
            <td>下载</td>
        </tr>
        <!-- 同时取两个数组的元素 -->
        <c:forEach var="myfile" items="${multipleFiles.myfiles}" varStatus="loop">
            <tr>
                <td>${ myfile.originalFilename }</td>
                <td>${ multipleFiles.description[loop.index] }</td>
                <td>${ myfile.size }</td>
                <td><a href="${ pageContext.request.contextPath }/download?filename=${ myfile.originalFilename }">download</a></td>
            </tr>
        </c:forEach>
    </table>
</fieldset>
<br>
</body>
</html>
